//@author A0105740R
package rightnow.util;

import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;

/**
 * This class is a collection of date time formatters.<br>
 * These formatters can be used to parse date time string or format date time.
 */
public final class DateTimeFormatters {
	
	public static final DateTimeFormatter time24Formatter = 
			ISODateTimeFormat.hourMinute();
	public static final DateTimeFormatter time12LongFormatter = 
			DateTimeFormat.forPattern("h:mmaa");
	public static final DateTimeFormatter time12ShortFormatter = 
			DateTimeFormat.forPattern("haa");
	
	public static final DateTimeFormatter stdDateFormatter = 
			DateTimeFormat.forPattern("dd/MM/yyyy");
	public static final DateTimeFormatter stdDateTextLongFormatter = 
			DateTimeFormat.forPattern("ddMMMyyyy");
	public static final DateTimeFormatter stdDateTextShortFormatter = 
			DateTimeFormat.forPattern("ddMMM");
	
	public static final DateTimeFormatter weekdayFormatter = 
			DateTimeFormat.forPattern("EEE");
}
